import ConfigParser

from plant import app


class Config:

    def __init__(self):
        cf = ConfigParser.ConfigParser()
        cf.read(app.config['PITOP_CONF'])
        cf.read('sys.conf')
        self.cf = cf

    def read(self, key, value):
        return str(self.cf.get(key, value))
